﻿<p>
    This example shows how to use the client-side API of Telerik Calendar for ASP.NET MVC.
</p>
<p>
    To use the client-side API you should first retrieve the calendar client-side object.
    The following code snippet shows how to do this:
</p>
<pre class="prettyprint">
&lt;script type=&quot;text/javascript&quot;&gt;
function getCalendar(){
    //"Calendar" is the value specified by the Name() method.
    var calendar = $("#Calendar").data("tCalendar");
    return calendar;
}
&lt;/script&gt;
</pre>
<p>
    Available client-side methods:
</p>
<ul>
    <li>
        You can set selected date with the <strong>value(...)</strong> method. This method accepts <strong>Date</strong> object or string.
    </li>
    <li>
        You can retrieve selected date with <strong>value()</strong> method. This method returns <strong>Date</strong> object 
        or <em>null</em>.
    </li>
</ul>